package com.housediyadmin.command.sizeCommand
{   	
	import com.housediyadmin.events.sizeEvent.AddSizesEvent;
	import com.housediyadmin.model.SizeModel;
	
	import org.robotlegs.mvcs.Command;
	
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/3/07
	 */ 
	public class UpdateSizeCommand extends Command
	{
		[Inject]
		public var model:SizeModel;
		
		[Inject]
		public var event:AddSizesEvent;
		
		override public function execute():void
		{
			model.updateModel(event.sizeArray);
		}
	}
}